package clazz.abs.device;

public class Test {
    public static void main(String[] args) {
      Device computer = new Computer();
      Device phone = new Phone();

      Child child = new Child();
      child.gievDevice(computer);
      child.play();

      child.gievDevice(phone);
      child.play();
    }
}
